package com.yan.abstract1;

public class InterfeceDemo2 {
    public static void main(String[] args) {
        ClassB b = new ClassB();
        b.showA();
        b.showB();
    }
}

interface InterfeceA{
    abstract void showA();

    public default void showB(){

    }

}

class ClassB implements InterfeceA{

    @Override
    public void showA() {
        System.out.println("AAAA");
    }

    @Override
    public void showB() {
        InterfeceA.super.showB();
        System.out.println("BBBB");
    }
}
